/**
 * Created by yqj on 2017/2/17.
 */

module.exports = {
    getPaginationInfo (path) {
        let info = {};
        let _arr = /[1-9]+\/[1-9]+/.exec(path);
        let pageNumber;
        let pageSize;
        if (/[1-9]+\/[1-9]+/.exec(path)) {
            pageNumber = _arr[0].split('/')[0];
            pageSize = _arr[0].split('/')[1];
        }

        return {
            pageNumber: pageNumber,
            pageSize: pageSize
        }
    },
    formatData () {

    }
};